package src.common;

public class Regex {
    public static final String phoneRegex = "^1[3-9]\\d{9}$";
    public static final String emailRegex = "^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$";

    public static boolean checkPhone(String phone) {
        return phone.matches(phoneRegex);
    }

    public static boolean checkEmail(String email) {
        return email.matches(emailRegex);
    }
}
